<template>
  <rx-dialog :options="dialogOptions"  @close="close" @confirm="confirm">
    <div>这是一个弹窗
        <div>{{name}}</div>
    </div>
  </rx-dialog>
</template>

<script>
import BaseDialogComponent from "@/components/layer/BaseDialogComponent.js";
export default {
  name: "DemoDialog",
  mixins:[BaseDialogComponent],
  props:["name","dialogClose"],
  data(){
      return {
      }
  },
  methods:{
        confirm(){
          this.dialogClose({action:'ok',data:'data'})
        },
        close(){
          this.dialogClose({action:'no',data:'data'})
        }
  }
}
</script>
